package com.zhijian.medical.service;


import com.zhijian.medical.entity.po.ExperimentProcessKzy;
import com.zhijian.medical.entity.vo.request.ExperimentProcessKzySearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessKzyVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessOfKzyVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 实验流程-核酸扩增一区-扩增仪数据 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-07-08 22:08:35
 */
public interface ExperimentProcessKzyService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcessKzy selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessKzyVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据实验流程id进行删除
     *
     * @param experimentProcessId
     * @return
     */
    void deleteByExperimentProcessId(Long experimentProcessId);

    /**
     * 新增
     *
     * @param experimentProcessKzy
     * @return
     */
    Long insert(ExperimentProcessKzy experimentProcessKzy);

    /**
     * 新增or修改
     *
     * @param experimentProcessKzy
     * @return
     */
    boolean saveOrUpdate(ExperimentProcessKzy experimentProcessKzy);

    /**
     * 更改
     *
     * @param experimentProcessKzy
     * @return
     */
    boolean update(ExperimentProcessKzy experimentProcessKzy);

    /**
     * 总数
     *
     * @param experimentProcessKzySearchVo
     * @return
     */
    Integer count(ExperimentProcessKzySearchVo experimentProcessKzySearchVo);

    /**
     * 列表
     *
     * @param experimentProcessKzySearchVo
     * @return
     */
    List<ExperimentProcessKzyVo> selectList(ExperimentProcessKzySearchVo experimentProcessKzySearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessKzySearchVo
     * @return
     */
    Page<ExperimentProcessKzyVo> selectPage(ExperimentProcessKzySearchVo experimentProcessKzySearchVo);

    /**
     * 根据实验流程id与扩增仪id查找数据
     *
     * @param experimentProcessId
     * @param deviceId
     * @return
     */
    ExperimentProcessKzyVo selectVoByExperimentProcessIdAndDeviceId(Long experimentProcessId, Long deviceId);

    /**
     * 根据实验流程id组装所有扩增仪模块的数据
     *
     * @param experimentProcessId
     * @return
     */
    List<ExperimentProcessOfKzyVo> selectExperimentProcessOfKzyVoByExperimentProcessId(Long experimentProcessId);
}